// http: //www.html5canvastutorials.com/tutorials/html5-canvas-wrap-text-tutorial/
        function wrapText(context, text, x, y, maxWidth, lineHeight)
           {
             var cars = text.split("\n");

              for (var ii = 0; ii < cars.length; ii++) {

               var line = "";
               var words = cars[ii].split(" ");

                  for (var n = 0; n < words.length; n++) {
                   var testLine = line + words[n] + " ";
                   var metrics = context.measureText(testLine);
                   var testWidth = metrics.Width;

                   if (testWidth > maxWidth) {
                   context.fillText(line, x, y);
                    line = words[n] + " ";
                     y += lineHeight;
                  }
                   else
                  {  
                      line = testLine;
                  }
                } 

                  context2.fillText(line, x, y);
                   y += lineHeight;
   }
}



